<?php
//$ct = @file_get_contents("http://123.30.11.54/colorring/al/601/521/0/0000/0000/220.mp3");
//
//if(($ct != false)&&($ct != '')) {
//    echo 'The file exists';
//}
//
//$context = stream_context_create(array(
//'http' => array(
//'timeout' => 5      // Timeout in seconds
//)
//));
//
//// Fetch the URL's contents
//$contents = @file_get_contents($this->url, 0, $context);
//
//// Check for empties
//if (!empty($contents)) {
////The file exists
//
//}
        function getrbt($subj,$rbtcodes,$telc){
            $ct="";
            $arrrbt=array();
            $arrrbt=split(";", $rbtcodes);
            
            foreach ($arrrbt as $value){
                if($value!=""){
                    $ct.="<span style=\"cursor: pointer;\" onMouseover=\"ddrivetip('".$subj."','".$value."','".$telc."','#ffffff', 404)\" onMouseout=\"hideddrivetip();\" onClick=\"showobj('JO_60_WMPlayer.php?id=".trim($value,"  ")."&telco=".$telc."','rbtplayer');\">";
                    $ct.=$value;
                    $ct.="</span><br/>";
                    
                }
            }
            return $ct;
        }
	$JO[ "subject"	 ] 	= JO( array( "EN" => "Subject",		"KO" => "제목",		"VI" => "Bài Hát"		) );
	$JO[ "release"	 ] 	= JO( array( "EN" => "Release",		"KO" => "출시",		"VI" => "Phát Hành"		) );
	$JO[ "birth"	 ] 	= JO( array( "EN" => "Birth",		"KO" => "생일",		"VI" => "Ngày Sinh"		) );
	$JO[ "date"		 ] 	= JO( array( "EN" => "Date",		"KO" => "날짜",		"VI" => "Ngày"			) );
	$JO[ "Nation"	 ] 	= JO( array( "EN" => "Nation",							"VI" =>"Quốc Gia"		) );
	$JO[ "Streamthis"] 	= JO( array( "EN"=>"Stream This",						"VI"=>"Nghe Nhạc"		) );
	$JO[ "DownThis"	 ] 	= JO( array( "EN"=>"Download This",						"VI"=>"Tải Về"			) );
	$JO[ "Lyric"	 ] 	= JO( array( "EN"=>"Lyric",								"VI"=>"Lời Hài Hát"		) );
	$JO[ "MusicVideo"] 	= JO( array( "EN"=>"Music Video",						"VI"=>"Phim Ca Nhạc"	) );
	$JO[ "IWantTo" ]	= JO( array( "EN"=>"I want to...",						"VI"=>"Tôi muốn..."		) );
	
	$JO[ "StreamAllchecked" ]	= JO( array( 
		"EN"=>"Stream Every Checked Item",
		"VI"=>"Nghe Tất Cả Bài Hát Đã Chọn"
	) );
	
	$JO[ "DownAllChecked" ] 	= JO( array( 
		"EN"=>"Download Every Checked Item",
		"VI"=>"Tải Tất Cả Bài Hát Đã Chọn"
	) );
	
	$JO[ "FavorAlbum" ]			= JO( array(
		"EN"=>"Favorite Album",
		"VI"=>"Album Yêu Thích"
	) );
	
	$JO[ "Put2favor" ] 			= JO( array( 
		"EN"=>"Put This in My Favorite",
		"VI"=>"Đưa Vào Mục Yêu Thích"
	) );
	
	$JO[ "alert" ] 				= JO( array( 
		"EN"=>"Please check the items that you want to put in your favorite.",
		"VI"=>"Xin hãy chọn bài hát mà bạn muốn đưa vào mục yêu thích."
	) );
	
	$JO[ "PutChecked2favor" ]		= JO( array( 
		"EN"=>"Put Every Checked item in My Favorite",
		"VI"=>"Đưa Các Bài Đã Chọn Vào Mục Yêu Thích"
	) );
	
	$JO[ "PutArtist2favorite"] 	= JO(array(
		"EN"=>"Put This Artist to Favorite",
		"VI"=>"Đưa Nghệ Sĩ Vào Mục Yêu Thích"
	) );
	 
	$JO[ "PutAllAlbum2Favorite"]= JO(array(
		"EN"=>"Put Every Album to Favorite",
		"VI"=>"Đưa Tất Cả Các Album Vào Mục Yêu Thích"
	) );
	 	 
	$JO[ "PutAllMusic2favorite"]= JO(array(
		"EN"=>"Put Every Music to Favorite",
		"VI"=>"Đưa Tất Cả Các Bài Hát Vào Mục Yêu Thích"
	) );

	$JO[ "StreamAllAlbum" ]		= JO(array(
		"EN"=>"Stream Every Album",
		"VI"=>"Nghe Tất Cả Album"
	) );
	 
	$JO[ "DownAllAlbum" ]		= JO(array(
		"EN"=>"Download Every Album",
		"VI"=>"Tải Tất Cả Album"
	) );
	
	$JO["StreamAllMusic"] 		= JO(array(
		"EN"=>"Stream Every Music",
		"VI"=>"Nghe Tất Cả Bài Hát"
	) );
	
	$JO["DownAllMusic"]			= JO(array(
		"EN"=>"Download Every Music",
		"VI"=>"Tải Tất Cả Bài Hát"
	) );

	$JO["Share2Facebook"]		= JO(array(
		"EN"=>"Share to Facebook",
		"VI"=>"Chia Sẻ Trên Facebook"
	) );
	
	$JO["Share2Twitter" ]		= JO(array(
		"EN"=>"Share to Twitter",
		"VI"=>"Chia Sẻ Trên Twitter"
	) );
	
	$JO["ArtistInfo"]			= JO(array(
		"EN"=>"Artist Information",
		"VI"=>"Thông Tin Nghệ Sĩ"
	) );
	
	$JO["Name"]				   	= JO( array(
		"EN"=>"Tên",
		"VI"=>"Tên"
	) );
	
	$JO["Autonym"]			   	= JO( array(
		"EN"=>"Autonym",
		"VI"=>"Tên Thật"
	) );
	
	$JO["Member"]				= JO( array(
		"EN"=>"Member",
		"VI"=>"Thành Viên"
	) );
	
	$JO["Org."]   				= JO( array(
		"EN"=>"Org.",
		"VI"=>"Công Ty"
	) );
	
	$JO["RecommenAlbum"]		= JO( array(
		"EN"=>"Recommendation Album",
		"VI"=>"Album Nên Xem"
	) );
	
	$JO["Phone"]  				= JO( array(
		"EN"=>"Phone",
		"VI"=>"Gọi Thoại"
	) );
	
	$JO["WatchCheckedVideo"]	= JO( array(
		"EN"=>"Watch Music Video of Every Checked Item",
		"VI"=>"Xem Tất Cả Các Video Đã Chọn"
	) ); 
?>

<?
        $page=1;
        if(isset ($_GET["page"])) $page=$_GET["page"];
	$query = "
		SELECT	*,
				`JC_FK_artist.name`(		`artist`		) AS `artist FKF`,
				`JC_FK_organization.name`(	`organization`	) AS `organization FKF`
		FROM	`artist`
		WHERE	`key` = '" . $_REQUEST[ "JO_artist" ] . "'
	";

	$recordSet = JO_query( $query );

	if( $recordSet -> num_rows ) $record = $recordSet -> fetch_array( );

?>
<link rel="stylesheet" type="text/css" href="JO_jquery/layout.css" />
<link rel="stylesheet" type="text/css" href="JO_jquery/style6.css" />
<script language="javascript" type="text/javascript" src="JO_jquery/jquery.easing.js"></script>
<script language="javascript" type="text/javascript" src="JO_jquery/script.js"></script>
<script type="text/javascript">
 $(document).ready( function(){
		var buttons = { previous:$('#lofslidecontent45 .lof-previous') ,
						next:$('#lofslidecontent45 .lof-next') };

		$obj = $('#lofslidecontent45').lofJSidernews( { interval : 4000,
												direction		: 'opacity',
											 	easing			: 'easeOutBounce',
												duration		: 1200,
												auto		 	: true,
												mainWidth:710,
												buttons			: buttons} );
	});
</script>


<!--tôltip-->
<div id="dhtmltooltip"></div>
<script type="text/javascript">
var offsetxpoint=-60; //Customize x offset of tooltip
var offsetypoint=20; //Customize y offset of tooltip
var ie=document.all;
var ns6=document.getElementById && !document.all;
var enabletip=false;
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : "";

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function ddrivetip(subject,rbtcode,telco){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px";
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor;
var taitin="",noidung="";
switch(telco){
    case "VTL8x88"://viettel
        taitin="Vui lòng soạn tin nhắn <span style='color:red;'><b>BH</b> <b>"+rbtcode+"</b></span> gửi <b style='color:red;'>1221</b> (5,000 VND/SMS).<br/>Nếu bạn chưa đăng ký địch vụ nhạc chờ, hãy soạn tin <b>DK</b> gửi <b>1221</b> để đăng ký sử dụng dịch vụ nhạc chờ.";
        noidung="";
        break;
        
    case "VMS8x88"://mobi
        taitin="Vui lòng soạn tin nhắn <span style='color:red;'><b>CHON</b> <b>"+rbtcode+"</b></span> gửi <b style='color:red;'>9224</b> (5,000 VND/SMS).<br/>Nếu bạn chưa đăng ký địch vụ nhạc chờ, hãy soạn tin <b>DK</b> gửi <b>9224</b> để đăng ký sử dụng dịch vụ nhạc chờ.";
        break;
    case "GPC8x88"://vina
        taitin="<br/>-Bước 1:Soạn tin <span style='color:red;'><b>STUNE</b> <b>"+rbtcode+"</b></span> gửi <b style='color:red;'>9194</b>.<br/>";
        taitin+="-Bước 2: Soạn tin <span style='color:red;'><b>MD</b> <b>"+rbtcode+"</b></span> gửi <b>9194</b>.(5,000 VND/SMS).";
        break;
    case "VNM8x88"://vnmobi
        taitin="Vui lòng soạn tin nhắn <span style='color:red;'><b>MUA</b> <b>"+rbtcode+"</b></span> gửi <b style='color:red;'>2345</b> (5,000 VND/SMS).<br/>Nếu bạn chưa đăng ký địch vụ nhạc chờ, hãy soạn tin <b>DK HR</b> gửi <b>123</b> để đăng ký sử dụng dịch vụ nhạc chờ.";
        break;
    case "SFN8x88"://sfone
        //taitin="Vui lòng soạn tin nhắn <span style='color:red;'><b>CHON</b> <b>"+rbtcode+"</b></span> gửi <b style='color:red;'>9224</b>(5,000 VND/SMS).<br/>Nếu bạn chưa đăng ký địch vụ nhạc chờ, hãy soạn tin <b>DK</b> gửi <b>1221</b> để đăng ký sử dụng dịch vụ nhạc chờ.";
        break;
    //thieu beeline

}
var content="";
content+="<div class='tippromotion' style='width:454px; height:130px;background-color:#ffffff;float:left;padding:4px 8px 4px 8px;'>";
content+="	<div style='width:452px;float:left;'>Để Tải Bài Hát <b style='color:blue;'>"+subject+"</b> Làm Nhạc Chờ, "+taitin+"<br/>";
content+="Dịch vụ tìm nhạc chờ:<br/>";
content+="-Tìm kiếm nhạc chờ theo Tên Bài Hát soạn tin <b>HQ S</b> &lt;<b>Tên Bài Hát</b>&gt; gửi <b>8388</b> (hoặc 8588).<br/>";
content+="-Tìm kiếm nhạc chờ theo Ca Sĩ soạn tin <b>HQ A</b> &lt;<b>Tên Ca Sĩ</b>&gt; gửi <b>8388</b> (hoặc 8588).<br/>";
content+="-Tìm kiếm nhạc chờ theo Thể Loại soạn tin <b>HQ G</b> &lt;<b>Tên Thể Loại</b>&gt; gửi <b>8388</b> (hoặc 8588).<br/>";
content+="</div></div>";
tipobj.innerHTML=content;
tipobj.style.top=200;
enabletip=true;
return false;
}
}

function positiontip(e){
if (enabletip){
var curX=(ns6)?e.pageX : event.clientX//+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY//+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20

var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth)
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
else if (curX<leftedge)
tipobj.style.left="5px"
else
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetxpoint+"px"

//same concept with the vertical position
//if (bottomedge<tipobj.offsetHeight)
//tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-20+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-20+"px"
//else
tipobj.style.top=ie? event.clientY+10+"px":e.clientY+10+"px"

tipobj.style.visibility="visible"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor='#ffffff'
tipobj.style.width=''
}
}

document.onmousemove=positiontip

</script>
<style type="text/css">
    #dhtmltooltip{
        top: 0px;
        position: fixed;
        width: 470px;
        border: 1px solid #7D7D7D;
        padding: 0px;
        margin: 0px;
        background-color: #ffffff;

        z-index: 100;
        /*Remove below line to remove shadow. Below line should always appear last within this CSS*/

    }
    .tippromotion img{
        max-width:100px;
    }
</style>
<!--end tooltip-->

<?
	if(isset ($_REQUEST["JO_artist"])){
		$queryimg="Select * from artistimg where `delete` is null and  `artist`='".$_REQUEST["JO_artist"]."'";
		$recordSetimg = JO_query( $queryimg );
	}
	if($recordSetimg->num_rows) {
?>

<div class="JO_unit">

	<h1>JukeOn™ Artist</h1>
        
	<div 
		id		= "lofslidecontent45" 
		class	= "unit lof-slidecontent"
		style	= "	width:712px;
					height:110px;"
	>
		<div class="preload">
			<div></div>
		</div>
		<div class="lof-main-outer" style="width:712px; height:110px;">
			<ul class="lof-main-wapper">
			<? while($recordimg = $recordSetimg -> fetch_array( )){?>
				<li>
					<img src="<?=(isset($recordimg["image"])?$recordimg["image"]:"")?>" title="" width="712px" height="110px"/>
				</li>
			<?}?>
			</ul>
		</div>
	</div>
</div>
<?php }else{?>
<div class="JO_page">
	<h1>JukeOn™ Artist</h1>
	<h2>&nbsp;</h2><h3>&nbsp;</h3>
</div>
<?php }?>

<div class="JO_relative" style="width: 960px;">
	<!-- Left -->

		<div class="JO_left">



			<!--<div class="JO_box_240" style="margin-bottom: 8px;">

				<h1><?//= $JO[ "IWantTo" ] ?></h1>

				<a href="#this" class="JO_menu"><?//= $JO[ "PutArtist2favorite"	]	?></a>
				<a href="#this" class="JO_menu"><?//= $JO[ "PutAllAlbum2Favorite"	]	?></a>
				<a href="#this" class="JO_menu"><?//= $JO[ "PutAllMusic2favorite"	]	?></a>

				<a href="#this" class="JO_menu"><?//= $JO[ "StreamAllAlbum"	 	]	?></a>
				<a href="#this" class="JO_menu"><?//= $JO[ "DownAllAlbum" 		]	?></a>

				<a href="#this" class="JO_menu"><?//= $JO[ "StreamAllMusic"		]	?></a>
				<a href="#this" class="JO_menu"><?//= $JO[ "DownAllMusic"			]	?></a>

				<a href="#this" class="JO_menu"><?//= $JO[ "Share2Facebook"		]	?></a>
				<a href="#this" class="JO_menu"><?//=	$JO[ "Share2Twitter" 		]	?></a>

			</div>-->



			<div class="JO_box_240" style="margin-bottom: 8px;">

				<h1><?= $JO["ArtistInfo"] ?></h1>

				<div>

					<table style="margin: 4px 4px 4px 0px; width: 216px;">

						<tr>
							<th style="width: 53px;"><?= $JO["Name"] ?></th>
							<td><?= $record[ "name" ] ?></td>
						</tr>

						<? if( empty( $record[ "artist" ] ) ) { ?>

							<tr>
								<th><?= $JO["Autonym"] ?></th>
								<td><?= $record[ "autonym" ] ?></td>
							</tr>

						<? } else { ?>

							<tr>
								<th><?= $JO["Member"] ?></th>
								<td><?

									$temp = explode( "\r\n", $record[ "artist FKF" ] );

									foreach( $temp as $key => $value ) {

										echo "<a href='?JO_artist=" . substr( $value, 0, strpos( $value, ":" ) ) . "'>" . substr( $value, strpos( $value, ":" ) + 2 ) . "</a><br />";

									}

								?></td>
							</tr>

						<? } ?>

						<!--<tr>
							<th>Content</th>
							<td><?= $record[ "content" ] ?></td>
						</tr>-->

						<tr>
							<th><?= $JO[ "birth" ] ?></th>
							<td><?= substr( $record[ "birth" ], 8, 2 ) ?><span class="JO_gray_40">/</span><?= substr( $record[ "birth" ], 5, 2 ) ?><span class="JO_gray_40">/</span><?= substr( $record[ "birth" ], 0, 4 ) ?></td>
						</tr>

						<tr>
							<th><?= $JO[ "Nation" ] ?></th>
							<td><?= $record[ "nation" ] ?></td>
						</tr>

						<tr>
							<th><?= $JO["Org."] ?></th>
							<td><?

								$temp = explode( "\r\n", $record[ "organization FKF" ] );

								foreach( $temp as $key => $value ) {

									echo "<a href='?JO_artist=" . substr( $value, 0, strpos( $value, ":" ) ) . "'>" . substr( $value, strpos( $value, ":" ) + 2 ) . "</a><br />";

								}

							?></td>
						</tr>

					</table>

				</div>

				<img style="margin: 4px; width: 24px; height: 72px;" /><img style="margin: 4px; width: 72px; height: 72px;" /><img style="margin: 4px; width: 72px; height: 72px;" /><img style="margin: 4px; width: 24px; height: 72px;" />

			</div>
                        <div id="rbtplayer" class="JO_box_240" style="margin-bottom: 8px;padding: 0px;width: 232px; border: 0px;">
                            
<!--                            <img style="float: left" height="40px" src="JO_80_image/loading (4).gif" /><div style="padding-top: 10px;">Loadding...</div>-->
                        </div>


			<!--<div class="JO_box_240">

				<h1><?//= $JO[ "RecommenAlbum" ] ?></h1>

				<img style="margin: 4px; width: 24px; height: 72px;" /><img style="margin: 4px; width: 72px; height: 72px;" /><img style="margin: 4px; width: 72px; height: 72px;" /><img style="margin: 4px; width: 24px; height: 72px;" />

			</div>-->



		</div>



	<!-- Body -->

		<div class="JO_left">

			<div class="JO_bar_720">

				<h1><?= $record[ "name" ] ?></h1>

				<h2>Bấm vào mã nhạc chờ của từng nhà mạng để nghe thử bài hát.</h2>

				<div>
                                    
                                    <table>
                                        <tr>
                                            <th rowspan="2" style="text-align: center;border-right: 1px solid #d7d7d7">
                                                Nhạc Chờ
                                            </th>
                                            <th colspan="6" style="text-align: center;">
                                                Mã Tải Nhạc
                                            </th>
                                        </tr>
                                        <tr >
                                            <th width="70px" style="text-align: center;">Viettel</th>
                                            <th width="70px" style="text-align: center;">MobiFone</th>
                                            <th width="70px" style="text-align: center;">VinaPhone</th>
                                            <th width="70px" style="text-align: center;">VietnamMobi</th>
                                            <th width="70px" style="text-align: center;">SFone</th>
                                            <th width="70px" style="text-align: center;">Beeline</th>

                                        </tr>
                                        <?php
                                        if(isset($_REQUEST["JO_artist"])){
                                        $query="SELECT * FROM rbt_view
                                                WHERE rbt_view.`artist FKF`=(
                                                    SELECT `name` from artist where `delete` is null and `key`=".$_REQUEST["JO_artist"]."
                                                )
                                                order by note
                                                ";
                                        $recordSetnum = JO_query( $query );
                                        $numpages=$recordSetnum->num_rows;
                                        if(($numpages%20)!=0) {$numpages=(int)($numpages/20)+1;}
                                        else                {$numpages=$numpages/20;}


                                        $query="SELECT * FROM rbt_view
                                                WHERE rbt_view.`artist FKF`=(
                                                    SELECT `name` from artist where `delete` is null and `key`=".$_REQUEST["JO_artist"]."
                                                )
                                                order by note limit ".(($page-1)*20).",20
                                                ";
                                        $recordSet = JO_query( $query );
                                        $nnote="";
                                        $numcol="1";
                                        $rbtnum="0";

                                        
                                        if($recordSet->num_rows){
                                            while ($record = $recordSet -> fetch_array( )){
                                            ?>
                                        <tr>
                                            <td><?=$record["note"]?></td>
                                            <td style="text-align: center;"><?=getrbt($record["note"],$record["viettel"],"VTL8x88")?></td>
                                            <td style="text-align: center;"><?=getrbt($record["note"],$record["mobifone"],"VMS8x88")?></td>
                                            <td style="text-align: center;"><?=getrbt($record["note"],$record["vinaphone"],"GPC8x88")?></td>
                                            <td style="text-align: center;"><?=getrbt($record["note"],$record["vietnamobile"],"VNM8x88")?></td>
                                            <td style="text-align: center;"><?=getrbt($record["note"],$record["sfone"],"SFN8x88")?></td>
                                            <td style="text-align: center;"><?=getrbt($record["note"],$record["beeline"],"beeline")?></td>
                                            
                                            
                                        </tr>
                                            <?
                                            }
                                            
                                        }

                                        }
                                        ?>
                                        <tr ><td style="text-align: center;border-bottom: 0px" colspan="7"><?

                                        if($numpages>1){
                                            if($page>2){
                                            ?>
                                                <a href="#" onclick="sendurl('1');">◀</a>
                                            <?
                                            }
                                            if($page>1){
                                            ?>
                                                <a href="#" onclick="sendurl('<?=($page-1)?>');">◁</a>

                                            <?
                                            }
                                            if($page-5>1) echo "...";
                                            for($i=$page-5;$i<=($page-1);$i++){
                                                if($i>0){
                                                ?>
                                                <a href="#" onclick="sendurl('<?=$i?>');"><?=$i?></a>
                                                <?
                                                }
                                            }
                                            echo  "<b style='color=#ffffff;'>".$page."</b>";
                                            for($i=$page+1;$i<=($page+5);$i++){
                                                if($i<=$numpages){
                                                ?>
                                                <a href="#" onclick="sendurl('<?=$i?>');"><?=$i?></a>
                                                <?
                                                }
                                            }
                                            if($page+5<$numpages) echo "...";
                                            if($page<$numpages){
                                            ?>
                                                <a href="#" onclick="sendurl('<?=($page+1) ?>');">▷</a>
                                            <?
                                            }
                                            if($page<($numpages-1)){
                                            ?>
                                                <a href="#" onclick="sendurl('<?=$numpages ?>');">▶</a>

                                            <?
                                            }

                                        }
                                         ?></td>
                                        </tr>
                                    </table>
                                    



				</div>

			</div>

		</div>



</div>

<div style="width:100%;height:100%;float:left;position:fixed;left:0px;top:0px;visibility: hidden;z-index: 1;" id="msgpopup">
    <DIV id=layer1>
<!--        <table style="width: 100%">
            <tr><th id="jo_subjecttitle">Subject</th></tr>
        </table>-->
        <SPAN id=close style="top: 4px;right:4px;position: absolute;z-index: 3;">
            <A style="TEXT-DECORATION: none;"
               href="javascript:setVisible('layer1')">
                <img
                    src="JO_80_image/JO_23_icon_delete_off.png" alt=""
                    onmouseover	= "this.src='JO_80_image/JO_23_icon_delete_on.png';"
                    onmouseout="this.src='JO_80_image/JO_23_icon_delete_off.png';"
                />
            </A></SPAN>

        <iframe id="iframe_rbt"
                src="" width="100%"
                height="100%"
                style="position: relative;border: 0px"
                frameborder="0"
                scrolling="no"

                ></iframe>
    </DIV>
</div>

<style type="text/css">
/*
     This script downloaded from www.JavaScriptBank.com
     Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
*/
.jsbank_sample_cont {margin: 20px; padding: 20px;}
.jsbank_sample_tit {font-weight: bold; margin-bottom: 10px; padding: 5px; width: auto; background-color: #c0c0c0; border: 5px solid #a0a0a0; color: black; text-align: center;}
/*
Created by: Jeroen Haan
Web Site: http://www.haan.net/

*/
#layer1 {
	position: relative;
	visibility: hidden;
	width: 440px;
	height: 300px;
	z-index: 2;
	padding: 0px;
        border: 1px solid #000000;
}

#close {
	float: right;
}
</style>
<SCRIPT type="text/javascript">

function calcHeight()
{
//find the height of the internal page
var the_height=
document.getElementById('iframe_rbt').contentWindow.
document.body.scrollHeight;

//change the height of the iframe
document.getElementById('iframe_rbt').height=
the_height;
}

x = (screen.width/2);
y = (screen.height/2);
function setVisible(obj)
{
    calcHeight();
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
	document.getElementById("msgpopup").style.visibility=obj.style.visibility;
}
function placeIt(obj)
{
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	theLeft = (screen.width/2)-(obj.offsetWidth /2)+52;
	theTop = (screen.height/2)-(obj.offsetHeight/2 )-40;
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	setTimeout("placeIt('layer1')",500);
}
function sendurl(p){

    location=("?JO_artist=<?=$_REQUEST["JO_artist"]?>&page="+p);
    
}
window.onscroll = setTimeout("placeIt('layer1')",500);
//
//function rbt_player(id,telco){
//    var obj="";
//    if(telco=="VTL8x88" || telco=="VMS8x88"){
//    var rbtfilename=id.substr((id.length-3), 3);
//    var ext="wav"
//    var host="http://203.113.138.199:9998/colorring/rl/";
//    if(telco=="VMS8x88"){ext="mp3";host="http://123.30.11.54/colorring/al/";}
//    var dot=id.substr((id.length-4), 1);
//    if(id.length==6){dot="0";}
//    var fol=id.substr(0, 3);
//
//    var urlfile=host+"601/"+fol+"/0/0000/000"+dot+"/"+rbtfilename+"."+ext;
//
//    obj+='<OBJECT'
//    obj+=' ID="NSPlay" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"'
//    obj+=' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"'
//    obj+=' standby="Loading Microsoft Windows Media Player components..."'
//    obj+=' type="application/x-oleobject">'
//    obj+=' <param name="Filename" value="'+urlfile+'">'
//    obj+=' <PARAM NAME="ShowControls" VALUE="-1">'
//    obj+=' <PARAM NAME="ShowDisplay" VALUE="0">'
//    obj+=' <PARAM NAME="ShowStatusBar" VALUE="-1">'
//    obj+=' <PARAM NAME="AutoSize" VALUE="0">'
//    obj+=' <param name="AudioStream" value="-1">'
//    obj+=' <param name="AutoStart" value="-1">'
//    obj+=' <param name="AnimationAtStart" value="-1">'
//    obj+=' <param name="AllowScan" value="-1">'
//    obj+=' <param name="AllowChangeDisplaySize" value="-1">'
//    obj+=' <param name="AutoRewind" value="0">'
//    obj+=' <param name="Balance" value="0">'
//    obj+=' <param name="BaseURL" value>'
//    obj+=' <param name="BufferingTime" value="5">'
//    obj+=' <param name="CaptioningID" value>'
//    obj+=' <param name="ClickToPlay" value="-1">'
//    obj+=' <param name="CursorType" value="0">'
//    obj+=' <param name="CurrentPosition" value="-1">'
//    obj+=' <param name="CurrentMarker" value="0">'
//    obj+=' <param name="DefaultFrame" value>'
//    obj+=' <param name="DisplayBackColor" value="0">'
//    obj+=' <param name="DisplayForeColor" value="16777215">'
//    obj+=' <param name="DisplayMode" value="0">'
//    obj+=' <param name="DisplaySize" value="4">'
//    obj+=' <param name="Enabled" value="-1">'
//    obj+=' <param name="EnableContextMenu" value="-1">'
//    obj+=' <param name="EnablePositionControls" value="-1">'
//    obj+=' <param name="EnableFullScreenControls" value="0">'
//    obj+=' <param name="EnableTracker" value="-1">'
//    obj+=' <param name="InvokeURLs" value="-1">'
//    obj+=' <param name="Language" value="-1">'
//    obj+=' <param name="Mute" value="0">'
//    obj+=' <param name="PlayCount" value="1">'
//    obj+=' <param name="PreviewMode" value="0">'
//    obj+=' <param name="Rate" value="1">'
//    obj+=' <param name="SAMILang" value>'
//    obj+=' <param name="SAMIStyle" value>'
//    obj+=' <param name="SAMIFileName" value>'
//    obj+=' <param name="SelectionStart" value="-1">'
//    obj+=' <param name="SelectionEnd" value="-1">'
//    obj+=' <param name="SendOpenStateChangeEvents" value="-1">'
//    obj+=' <param name="SendWarningEvents" value="-1">'
//    obj+=' <param name="SendErrorEvents" value="-1">'
//    obj+=' <param name="SendKeyboardEvents" value="0">'
//    obj+=' <param name="SendMouseClickEvents" value="0">'
//    obj+=' <param name="SendMouseMoveEvents" value="0">'
//    obj+=' <param name="SendPlayStateChangeEvents" value="-1">'
//    obj+=' <param name="ShowCaptioning" value="0">'
//    obj+=' <param name="ShowAudioControls" value="-1">'
//    obj+=' <param name="ShowGotoBar" value="0">'
//    obj+=' <param name="ShowPositionControls" value="-1">'
//    obj+=' <param name="ShowTracker" value="-1">'
//    obj+=' <param name="TransparentAtStart" value="0">'
//    obj+=' <param name="VideoBorderWidth" value="0">'
//    obj+=' <param name="VideoBorderColor" value="0">'
//    obj+=' <param name="VideoBorder3D" value="0">'
//    obj+=' <param name="Volume" value="-180">'
//    obj+=' <param name="WindowlessVideo" value="0">'
//    obj+=' <Embed style="z-index:100" type="application/x-mplayer2" '
//        obj+=' pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"'
//        obj+=' file="'+urlfile+'"'
//        obj+=' src="'+urlfile+'"'
//        obj+=' ShowControls=1'
//        obj+=' ShowDisplay=0'
//        obj+=' ShowStatusBar=1'
//        obj+=' width=232'
//        obj+=' height="70">'
//    obj+=' </embed>'
//    obj+=' </OBJECT>'
//}
//document.getElementById("rbtplayer").innerHTML=obj;
//}
function showobj(url,obj) {
    document.getElementById(obj).innerHTML="<div style=\"height: 45px;text-align: center;background: url(JO_80_image/loading4.gif) center no-repeat\"><br/>Loadding...</div>";
    if (window.XMLHttpRequest) {
    xmlhttp=new XMLHttpRequest(); }
    else {
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }
        xmlhttp.onreadystatechange=function() {
                if (xmlhttp.readyState==4 && xmlhttp.status==200) {
                    document.getElementById(obj).innerHTML=xmlhttp.responseText;
                }
            }

    xmlhttp.open("GET",url,true);
    xmlhttp.send();
    
}
</SCRIPT> 
<!--<div id="rbtplayer" style="position: fixed;bottom: 0px;width: 320px; left: 500px;background: red;z-index: 100;height: 70px;border: 1px solid #9d9d9d;">
   
</div>-->                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             